import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入移动端适配插件
import 'amfe-flexible'
// import { allChannelListAPI } from '@/api'
import {
  NavBar, Form, Field, Button,
  Tabbar, TabbarItem, Icon, Tab, Tabs, Cell, CellGroup, List, PullRefresh
} from 'vant'

Vue.use(PullRefresh)
Vue.use(List)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Icon)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Button)
Vue.use(Form)
Vue.use(Field)
Vue.use(NavBar)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

// const myFn = async () => {
//   try {
//     await allChannelListAPI()
//   } catch (err) {
//     console.dir(err)
//   }
// }
// myFn()
